package com.gxa.modules.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
import java.math.BigDecimal;
/** 
 * @team mackie Studio 
 * @Author kk 
 * @Date 2023-03-17 20:15:22 
 */
@Entity
@Data
@TableName("crm_order" )
public class CrmOrder  implements Serializable {

	private static final long serialVersionUID =  5975686630234716824L;

	/**
	 * 订单ID
	 */
	@Id
   	@TableId(value = "order_id",type= IdType.AUTO)
	private Integer orderId;

	/**
	 * 订单编号
	 */
   	@TableField("order_no" )
	private Integer orderNo;

	/**
	 * 订单总金额
	 */
   	@TableField("received" )
	private BigDecimal received;

	/**
	 * 下单日期
	 */
   	@TableField("order_date" )
	private Date orderDate;

	/**
	 * 交单日期
	 */
   	@TableField("presentation_date" )
	private Date presentationDate;

	/**
	 * 订单备注
	 */
   	@TableField("order_remarks" )
	private String orderRemarks;

	/**
	 * 录入时间
	 */
   	@TableField("entry_time" )
	private Date entryTime;

	/**
	 * 发货状态id
	 */
   	@TableField("shipment_status_id" )
	private Integer shipmentStatusId;

	/**
	 * 订单状态id
	 */
   	@TableField("order_status_id" )
	private Integer orderStatusId;

	/**
	 * 客户id
	 */
   	@TableField("customer_id" )
	private Integer customerId;

	/**
	 * 员工id
	 */
   	@TableField("employee_id" )
	private Integer employeeId;

	/**
	 * 1为未被删除，0为已删除，假删除状态
	 */
	@TableLogic(value = "1",delval = "0")
   	@TableField("delete_state" )
	private Integer deleteState;


}
